/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DataStructures;

import java.util.Date;

/**
 *
 * @author Manuel
 */
public class Client {

    private String code;
    private String url;
    private Date timestamp;
    private String hash;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
        this.hash = this.enhash(code);
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getHash(){
        return hash;
    }

    private String enhash(String code) {
        //TODO implement some hash function
        return "";
    }
    

}
